home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 February
/
PCWorld_2006-02_cd.bin
/
software
/
topware
/
pspad
/
pspad450inst_cz.exe
/
{app}
/
Context
/
CAL.DEF
< prev
next >
Wrap
Text File
|
2003-08-07
|
4KB
|
105 lines
; pspad code template for cal
; created by pspad 12.07.2002 09:10
; author: martinpa
[Macro definition]
%recordset%=@E Zadej recodset
%recordset1%=@E Zadej recodset
%prom%=@E Hodnota
%prom1%=@E Hodnota
%prom2%=@E Hodnota
%dialog%=@E Dialog
%ComboFind%=@C Jak² zaznam:,,-,-;+,'
;--------------------------------------------------------------------------------
[for .. to .. do | cyklus s pevnym poctem kroku]
for %prom% := %prom1% to %prom2% do
begin
|
end;
;--------------------------------------------------------------------------------
[setrange | setrange(co, od, do) ]
%recordset%.setrange(%recordset%."|" , , );
;--------------------------------------------------------------------------------
[get | get(promenna)]
if %recordset%.get(|) then
;--------------------------------------------------------------------------------
[begin | (begin ... end) ]
begin
º|
end
;--------------------------------------------------------------------------------
[repeat | (prochazeni recordsetu)]
repeat
|
until %recordset%.next=0;
;--------------------------------------------------------------------------------
[if | (podminka)]
if º| then
;--------------------------------------------------------------------------------
[calcfields | calcfields(pole, .., ..)]
%recordset%.calcfields (|);
;--------------------------------------------------------------------------------
[message | message(text)]
message(º|);
;--------------------------------------
[message2 | message(format(integer))]
message(format(º|));
;--------------------------------------------------------------------------------
[confirm | confirm(text)]
if %prom% confirm(|) then
;--------------------------------------------------------------------------------
[setfilter | setfilter(co,hodnota)]
%recordset%.setfilter(| , ) ;
;--------------------------------------------------------------------------------
[create | create(objekt)]
create (º|);
;--------------------------------------------------------------------------------
[clear | clear(objekt)]
clear (º|) ;
;--------------------------------------------------------------------------------
[createtotals | createtotals(pole)]
Currreport.createtotals(º|)
;--------------------------------------------------------------------------------
[testfield | testfield(pole,hodnota)]
%recordset%.testfield(|)
;--------------------------------------------------------------------------------
[round | round(pole,zpusob)]
round(º| , )
;--------------------------------------------------------------------------------
[format | format(promenna)]
format(º|)
;--------------------------------------------------------------------------------
[count | recordset.count]
%recordset%.count
;--------------------------------------------------------------------------------
[setcurrentkey | recordset.setcurrentkey]
%recordset%.setcurrentkey(|);
;--------------------------------------------------------------------------------
[find | find('-')]
if %recordset%.find(%ComboFind%) then
|
;--------------------------------------------------------------------------------
[reset | recordset.reset]
%recordset%.reset;
|
;--------------------------------------------------------------------------------
[d.Open | okno.open('text #1#######', promenna]
%dialog%.open(|)
;--------------------------------------------------------------------------------
[d.Update | okno.open(1, promenna]
%dialog%|.update()
;--------------------------------------------------------------------------------
[d.Close | okno.Close
%dialog%|.Close
;--------------------------------------------------------------------------------
[DATE2DMY | Date2DMY(datum)]
date2SMY(º|)
;--------------------------------------------------------------------------------
[Commit| Commit]
Commit
;-------------------------------------------------------------------------------
[error| error()]
error(º|);
;
[TRANSFERFIELDS | rsDestination.TRANSFERFIELDS(rsSource)]
%recordset%.TRANSFERFIELDS(%recordset1%)